package com.hisense.hiioc.formtable.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Field {

    /**
     * 字段Id
     */
    private Integer fieldId;
    /**
     * 表单Id
     */
    private Integer formId;
    /**
     * 字段编码，自动生成，对应到数据库中的字段名
     */
    private String fieldCode;
    /**
     * 字段类型，对应到upload_field_type表中的type_code
     */
    private String fieldType;
    /**
     * 字段名称
     */
    private String fieldName;
    /**
     * 字段描述
     */
    private String fieldDesc;
    /**
     * 字段排序
     */
    private String fieldOrder;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    public Integer getFieldId() {
        return fieldId;
    }

    public void setFieldId(Integer fieldId) {
        this.fieldId = fieldId;
    }

    public Integer getFormId() {
        return formId;
    }

    public void setFormId(Integer formId) {
        this.formId = formId;
    }

    public String getFieldCode() {
        return fieldCode;
    }

    public void setFieldCode(String fieldCode) {
        this.fieldCode = fieldCode;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldDesc() {
        return fieldDesc;
    }

    public void setFieldDesc(String fieldDesc) {
        this.fieldDesc = fieldDesc;
    }

    public String getFieldOrder() {
        return fieldOrder;
    }

    public void setFieldOrder(String fieldOrder) {
        this.fieldOrder = fieldOrder;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Field{" +
                "fieldId=" + fieldId +
                ", formId=" + formId +
                ", fieldCode='" + fieldCode + '\'' +
                ", fieldType='" + fieldType + '\'' +
                ", fieldName='" + fieldName + '\'' +
                ", fieldDesc='" + fieldDesc + '\'' +
                ", fieldOrder='" + fieldOrder + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
